from flask_restful import Api

from apps.settingApi.api.dict.views import dictListView,dictPkView,dictDataListView,dictDataPkView

setting_dict_api = Api(prefix='/setting/dict/')

# 字典
# dictTypeModel列表操作
setting_dict_api.add_resource(dictListView,'/dictlist/',endpoint="dictlist")
# dictTypeModel PK操作
setting_dict_api.add_resource(dictPkView,'/dictpk/<pk>/',endpoint="dictpk")

# 字典数据
# dictTypeModel列表操作
setting_dict_api.add_resource(dictDataListView,'/dictdatalist/',endpoint="dictdatalist")
# dictTypeModel PK操作
setting_dict_api.add_resource(dictDataPkView,'/dictdatapk/<pk>/',endpoint="dictdatapk")